home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Misc
/
FLM
/
otherfiles
/
english
/
ARexx
/
edward_look.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-01-01
|
1KB
|
41 lines
/* [TRANSLATOR'S NOTE. As I didn't own Edward neither I could try it nor
translate its menu items. In such cases, I've put the supposed English
translation between [* and *]].
This script sends the word under the cursor to FLM
To call this script through a keyboard shortcut, load the file
"Edward.DEF" in Edward directory. Now, go with your cursor on location
"Keybordbelegungen" [* Keyboard Mapping/Allocation *] (you can find this
in "Einstellungen" [* Settings *] menu), and insert the following line
e.g. after "(CTRL".
<Key> (ExecRexx "<File>")
<Key>: Here you must indicate the key through which this script could
be called, e.g. F10
<File>: Here you must indicate name and path of this file.
E.g.: F10 (ExecRexx "edward_look.rexx")
In the above example, through CTRL-F10, word under cursor will be sent
to FLM, which thereafter opens a window with the translation.
-> Warning: The program RexxMast must be active !!!
*/
/* Here indicate, please, the FLM path and program name */
initiation=run >NIL: "dh0:FLM/FLM"
Options RESULTS
IF ~show('P','FLM') THEN DO
/* if FLM is not yet running */
ADDRESS COMMAND initiation
ADDRESS COMMAND "SYS:RexxC/WaitForPort FLM"
END
GetWord /* Word under cursor in variable RESULT */
Address FLM lookword RESULT /* Contents of variable RESULT to FLM*/